
package com.bei_en.teacher.admin.model.questions.vo;

import java.util.*;
import com.bei_en.teacher.admin.model.questions.bean.QuestionsComment;
import com.bei_en.teacher.admin.model.BaseVo;
import javax.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import java.math.BigDecimal;

/**
 * 用于前端页面数据传递
 * 
 * @author Guocg
 * @date 2016-8-21 21:28:28
 */
public class QuestionsCommentVo extends BaseVo {

    private QuestionsComment questionsComment;

    public QuestionsCommentVo() {

    this.questionsComment = new QuestionsComment();
    }

    public QuestionsCommentVo(QuestionsComment questionsComment) {

    this.questionsComment = questionsComment;
    }
    
    public QuestionsComment getQuestionsComment() {

    return this.questionsComment;
    }
    
    public void setQuestionsComment(QuestionsComment questionsComment) {

    this.questionsComment=questionsComment;
    }

        public Integer getId() {
            return this.questionsComment.getId();
        }
        public void setId(Integer id) {
            this.questionsComment.setId(id);
        }
        
        public void setId(Integer value) {
    	this.questionsComment.setId(value);
        }
	
    public Integer getId() {
        return this.questionsComment.getId();
    }
        
        public void setUserId(Integer value) {
    	this.questionsComment.setUserId(value);
        }
	
    public Integer getUserId() {
        return this.questionsComment.getUserId();
    }
        
        public void setCommentPeople(Integer value) {
    	this.questionsComment.setCommentPeople(value);
        }
	
    public Integer getCommentPeople() {
        return this.questionsComment.getCommentPeople();
    }
        
        public void setQuestionsId(Integer value) {
    	this.questionsComment.setQuestionsId(value);
        }
	
    public Integer getQuestionsId() {
        return this.questionsComment.getQuestionsId();
    }
        
        public void setContent(String value) {
    	this.questionsComment.setContent(value);
        }
	@Length(max=255)
    public String getContent() {
        return this.questionsComment.getContent();
    }
        
    public void setCreateTime(Date value) {
        this.questionsComment.setCreateTime(value!=null ? (int) (value.getTime()/1000) : 0);
    }

	 public Date getCreateTime() {
	     Integer time=this.questionsComment.getCreateTime();
	     if (time!=null&&time!=0)
		    return new Date(Long.valueOf(time)*1000);
		else
		    return null;
	    }
    


}